package com.nseeod.constant;

public class AppConstants {
//DB Constants

	private static String jdbcURL = "jdbc:mysql://localhost/nsedb";
	private static String jdbcDriver = "com.mysql.jdbc.Driver";
	private static String user = "root";
	private static String password = "longhorn";
	
//thread constants	
	private static int numberOfThread = 4;
//file constants
	private static String tempLocation = "./";
	private static String dataLocation = "./";
	private static String tempFolderPath = "temp";
	private static String dataFolderPath = "data";
	private static String nseFolderPath = "nse";

//url constants
	private static String listed = "http://www.nseindia.com/content/equities/EQUITY_L.csv";
	private static String delisted = "http://www.nseindia.com/content/equities/delisted.csv";
	private static String nameChange = "http://www.nseindia.com/content/equities/namechange.csv";
	private static String symbolChange = "http://www.nseindia.com/content/equities/symbolchange.csv";
	private static String suspended = "http://www.nseindia.com/content/equities/suspension.csv";

//data url constant
	//private static String nseBhavCopyURL = "http://www.nseindia.com/content/historical/EQUITIES/[yyyy]/[MMM]/cm[ddMMMyyyy]bhav.csv";
	private static String nseBhavCopyURL = "http://www.nseindia.com/content/historical/EQUITIES/";
	public static String getTempLocation() {
		return tempLocation;
	}

	public static void setTempLocation(String tempLocation) {
		AppConstants.tempLocation = tempLocation;
		AppConstants.tempFolderPath = tempLocation + "/temp";
	}

	public static String getDataLocation() {
		return dataLocation;
	}

	public static void setDataLocation(String dataLocation) {
		AppConstants.dataLocation = dataLocation;
		AppConstants.dataFolderPath = dataLocation + "/data";
		AppConstants.nseFolderPath = dataLocation + "/nse";
	}

	public static String getTempFolderPath() {
		return tempFolderPath;
	}

	public static void setTempFolderPath(String tempFolderPath) {
		AppConstants.tempFolderPath = tempFolderPath;
	}

	public static String getDataFolderPath() {
		return dataFolderPath;
	}

	public static void setDataFolderPath(String dataFolderPath) {
		AppConstants.dataFolderPath = dataFolderPath;
	}

	public static String getNseFolderPath() {
		return nseFolderPath;
	}

	public static void setNseFolderPath(String nseFolderPath) {
		AppConstants.nseFolderPath = nseFolderPath;
	}

	public static String getListed() {
		return listed;
	}

	public static void setListed(String listed) {
		AppConstants.listed = listed;
	}

	public static String getDelisted() {
		return delisted;
	}

	public static void setDelisted(String delisted) {
		AppConstants.delisted = delisted;
	}

	public static String getNameChange() {
		return nameChange;
	}

	public static void setNameChange(String nameChange) {
		AppConstants.nameChange = nameChange;
	}

	public static String getSymbolChange() {
		return symbolChange;
	}

	public static void setSymbolChange(String symbolChange) {
		AppConstants.symbolChange = symbolChange;
	}

	public static String getSuspended() {
		return suspended;
	}

	public static void setSuspended(String suspended) {
		AppConstants.suspended = suspended;
	}

	public static String getNseBhavCopyURL() {
		return nseBhavCopyURL;
	}

	public static void setNseBhavCopyURL(String nseBhavCopyURL) {
		AppConstants.nseBhavCopyURL = nseBhavCopyURL;
	}

	public static int getNumberOfThread() {
		return numberOfThread;
	}

	public static void setNumberOfThread(int numberOfThread) {
		AppConstants.numberOfThread = numberOfThread;
	}

	public static String getJdbcURL() {
		return jdbcURL;
	}

	public static void setJdbcURL(String jdbcURL) {
		AppConstants.jdbcURL = jdbcURL;
	}

	public static String getJdbcDriver() {
		return jdbcDriver;
	}

	public static void setJdbcDriver(String jdbcDriver) {
		AppConstants.jdbcDriver = jdbcDriver;
	}

	public static String getUser() {
		return user;
	}

	public static void setUser(String user) {
		AppConstants.user = user;
	}

	public static String getPassword() {
		return password;
	}

	public static void setPassword(String password) {
		AppConstants.password = password;
	}
}
